module.exports = {
  
    // 配置跨域请求
    devServer: {
      port: 3000,
      host: 'localhost',
      open: true,
      https: false,
      proxy: {
        "/api": {
          target: "http://localhost/car/up_tb_admin.php", // 接口地址
          ws: true, // 是否启用websockets
          changOrigin: true, //允许跨域  Origin源127.0.0.1:9000
          pathRewrite: {
            "^/api": "http://localhost/car/up_tb_admin.php" //请求的时候使用这个/api前缀就可以
          }
        }
      },
      css: {
        preprocessorOptions: {
            less: {
                modifyVars: {
                    hack: `true; @import (reference) "${path.resolve("src/assets/css/base.less")}";`,
                },
                javascriptEnabled: true,
            },
        },
    },
  
    }
  
  }
  